package com.example.librarymanagement.dto.borrowrecord;

import com.example.librarymanagement.dto.PageDto;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @author LQS
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class BorrowRecordListDto extends PageDto {

    @ApiModelProperty(value = "是否是用户查询")
    @NotNull(message = "是否是用户查询")
    private Integer user;

    @ApiModelProperty(value = "借阅者姓名")
    private String readerName;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "操作对象（0为图书借阅，1为期刊借阅）")
    @NotNull(message = "操作对象不能为空")
    private Integer bookPeriodical;
}
